package cc.aliza.lib.mongo.core;

import com.mongodb.client.model.IndexOptions;
import org.bson.Document;

/**
 * 『给时光以生命·给岁月以文明』
 *
 * @author Zhang Jing (byrdkm17@gmail.com).
 */
public class DBIndex {

    private Document key;
    private IndexOptions options;

    public DBIndex(Document key, IndexOptions options) {
        this.key = key;
        this.options = options;
    }

    public Document getKey() {
        return key;
    }

    public void setKey(Document key) {
        this.key = key;
    }

    public IndexOptions getOptions() {
        return options;
    }

    public void setOptions(IndexOptions options) {
        this.options = options;
    }
}
